package com.cby.springboot.demo.mapper;

import com.cby.springboot.demo.bean.AdminUserRole;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AdminUserRoleMapper {

    @Select("select * from admin_user_role where uid = #{uid, jdbcType=VARCHAR}")
    List<AdminUserRole> findAllByUid(String uid);

    @Delete("delete from admin_user_role where uid = #{uid, jdbcType=VARCHAR}")
    void deleteAllByUid(String uid);
}
